package com.iring.domain.config.prop;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * udp配置属性
 *
 * @author wanggan
 */
@Configuration
@ConfigurationProperties(prefix = "com.zycoo.udp")
public class UDPProperties {

    private Integer port;

    private String version;

    private Boolean compare;

    private Long linkFirstTimeOut;

    private Long linkSecondTimeOut;

    @Override
    public String toString() {
        return "{port:" + port + ",version:" + version + ",compare:" + compare + ",linkFirstTimeOut:" + linkFirstTimeOut + ",linkSecondTimeOut:" + linkSecondTimeOut + "}";
    }

    public Integer getPort() {
        return port;
    }

    public String getVersion() {
        return version;
    }

    public Boolean getCompare() {
        return compare;
    }

    public Long getLinkFirstTimeOut() {
        return linkFirstTimeOut;
    }

    public Long getLinkSecondTimeOut() {
        return linkSecondTimeOut;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public void setCompare(Boolean compare) {
        this.compare = compare;
    }

    public void setLinkFirstTimeOut(Long linkFirstTimeOut) {
        this.linkFirstTimeOut = linkFirstTimeOut;
    }

    public void setLinkSecondTimeOut(Long linkSecondTimeOut) {
        this.linkSecondTimeOut = linkSecondTimeOut;
    }
}
